typedef struct Node
{
    int  elem; /* data */
    struct Node * last;
    struct Node * next; 
} Node;
